#新增留言
import time

from selenium.webdriver.chrome import webdriver

driver=webdriver.WebDriver()
driver.get('http:192.168.75.131//')
driver.maximize_window()
e=driver.find_element_by_partial_link_text('我的账户')
e.click()
time.sleep(2)
e=driver.find_element_by_xpath("/html/body/div[5]/div[1]/div/div/div/div/a[6]")
e.click()
time.sleep(2)

e=driver.find_element_by_xpath("//table/tbody/tr[2]/td[2]/input")
e.send_keys("1")
time.sleep(2)

e=driver.find_element_by_css_selector(".B_blue")
e.send_keys("法修散打")
f=driver.find_element_by_name("message_img")
f.send_keys(r"E:\work\codings\python\2506\autoWeb\datas\img.png")
g=driver.find_element_by_class_name("bnt_bonus")
g.click()